package com.xinwei.excpetion;
/**
 * 异常枚举
 */
public enum ManagerExceptionEnmu {
    ERROR_TOKEN(10001,"error token"),
    LOGIN_FAILED(10002,"error username or password"),
    NEED_PASSWORD_AND_USERNAME(10003,"username and password can not be zero"),
    NO_CLASS_INFO(10004,"当前暂无班级信息"),
    NO_STUDENT_INFO(10005,"当前暂无学生信息"),
    NO_BASIC_INFO(10005,"当前暂无该学生基本信息"),
    NO_ENMU(10006,"无该枚举"),
    UPDATE_FAILED(10007,"更新失败"),
    ERROR_CLASS_NAME(10008,"请输入正确的班级"),
    NEED_KEYWORD(10009,"关键词不能为空"),
    SYSTEM_ERROR(20000,"系统异常");
    /**
     * 异常码
     */
    Integer code;
    /**
     * 描述信息
     */
    String msg;

    ManagerExceptionEnmu(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
